package com.ruoyi.supplier.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;

import java.io.Serializable;
import java.util.Date;

/**
 * 存储企业基本信息的表
 * @TableName gys_qy
 */
@TableName(value ="gys_qy")
public class GysQy implements Serializable {
    /**
     * 公司唯一标识符
     */
    @TableId
    private Long id;

    /**
     * 关联供应商主表
     */
    private Long publicId;

    /**
     * 公司类型
     */
    private String companyType;

    /**
     * 纳税人识别号
     */
    private String taxNumber;

    /**
     * 公司成立日期
     */
    private Date establishmentDate;

    /**
     * 公司所属省份
     */
    private String province;

    /**
     * 代理商级别，仅当公司类型为代理时有效
     */
    private String agentLevel;

    /**
     * 营业执照
     */
    private String businessUrl;

    /**
     * 其他证明材料
     */
    private String additionalUrls;

    /**
     * 授权联系人的姓名
     */
    private String authorizedContact;

    /**
     * 授权联系人在公司的职位
     */
    private String contactPosition;

    /**
     * 授权联系人的电话号码
     */
    private String contactPhone;

    /**
     * 授权委托书
     */
    private String authorizationUrl;

    /**
     * 状态（0正常 1停用）
     */
    private String status;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    private String delFlag;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime; // 创建时间

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime; // 更新时间

    @TableField(fill = FieldFill.INSERT)
    private String createBy; // 创建人

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy; // 更新人
    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 公司唯一标识符
     */
    public Long getId() {
        return id;
    }

    /**
     * 公司唯一标识符
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 关联供应商主表
     */
    public Long getPublicId() {
        return publicId;
    }

    /**
     * 关联供应商主表
     */
    public void setPublicId(Long publicId) {
        this.publicId = publicId;
    }

    /**
     * 公司类型
     */
    public String getCompanyType() {
        return companyType;
    }

    /**
     * 公司类型
     */
    public void setCompanyType(String companyType) {
        this.companyType = companyType;
    }

    /**
     * 纳税人识别号
     */
    public String getTaxNumber() {
        return taxNumber;
    }

    /**
     * 纳税人识别号
     */
    public void setTaxNumber(String taxNumber) {
        this.taxNumber = taxNumber;
    }

    /**
     * 公司成立日期
     */
    public Date getEstablishmentDate() {
        return establishmentDate;
    }

    /**
     * 公司成立日期
     */
    public void setEstablishmentDate(Date establishmentDate) {
        this.establishmentDate = establishmentDate;
    }

    /**
     * 公司所属省份
     */
    public String getProvince() {
        return province;
    }

    /**
     * 公司所属省份
     */
    public void setProvince(String province) {
        this.province = province;
    }

    /**
     * 代理商级别，仅当公司类型为代理时有效
     */
    public String getAgentLevel() {
        return agentLevel;
    }

    /**
     * 代理商级别，仅当公司类型为代理时有效
     */
    public void setAgentLevel(String agentLevel) {
        this.agentLevel = agentLevel;
    }

    /**
     * 营业执照
     */
    public String getBusinessUrl() {
        return businessUrl;
    }

    /**
     * 营业执照
     */
    public void setBusinessUrl(String businessUrl) {
        this.businessUrl = businessUrl;
    }

    /**
     * 其他证明材料
     */
    public String getAdditionalUrls() {
        return additionalUrls;
    }

    /**
     * 其他证明材料
     */
    public void setAdditionalUrls(String additionalUrls) {
        this.additionalUrls = additionalUrls;
    }

    /**
     * 授权联系人的姓名
     */
    public String getAuthorizedContact() {
        return authorizedContact;
    }

    /**
     * 授权联系人的姓名
     */
    public void setAuthorizedContact(String authorizedContact) {
        this.authorizedContact = authorizedContact;
    }

    /**
     * 授权联系人在公司的职位
     */
    public String getContactPosition() {
        return contactPosition;
    }

    /**
     * 授权联系人在公司的职位
     */
    public void setContactPosition(String contactPosition) {
        this.contactPosition = contactPosition;
    }

    /**
     * 授权联系人的电话号码
     */
    public String getContactPhone() {
        return contactPhone;
    }

    /**
     * 授权联系人的电话号码
     */
    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    /**
     * 授权委托书
     */
    public String getAuthorizationUrl() {
        return authorizationUrl;
    }

    /**
     * 授权委托书
     */
    public void setAuthorizationUrl(String authorizationUrl) {
        this.authorizationUrl = authorizationUrl;
    }

    /**
     * 状态（0正常 1停用）
     */
    public String getStatus() {
        return status;
    }

    /**
     * 状态（0正常 1停用）
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    public String getDelFlag() {
        return delFlag;
    }

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    /**
     * 创建者
     */
    public String getCreateBy() {
        return createBy;
    }

    /**
     * 创建者
     */
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 更新者
     */
    public String getUpdateBy() {
        return updateBy;
    }

    /**
     * 更新者
     */
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    /**
     * 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 备注
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 备注
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        GysQy other = (GysQy) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPublicId() == null ? other.getPublicId() == null : this.getPublicId().equals(other.getPublicId()))
            && (this.getCompanyType() == null ? other.getCompanyType() == null : this.getCompanyType().equals(other.getCompanyType()))
            && (this.getTaxNumber() == null ? other.getTaxNumber() == null : this.getTaxNumber().equals(other.getTaxNumber()))
            && (this.getEstablishmentDate() == null ? other.getEstablishmentDate() == null : this.getEstablishmentDate().equals(other.getEstablishmentDate()))
            && (this.getProvince() == null ? other.getProvince() == null : this.getProvince().equals(other.getProvince()))
            && (this.getAgentLevel() == null ? other.getAgentLevel() == null : this.getAgentLevel().equals(other.getAgentLevel()))
            && (this.getBusinessUrl() == null ? other.getBusinessUrl() == null : this.getBusinessUrl().equals(other.getBusinessUrl()))
            && (this.getAdditionalUrls() == null ? other.getAdditionalUrls() == null : this.getAdditionalUrls().equals(other.getAdditionalUrls()))
            && (this.getAuthorizedContact() == null ? other.getAuthorizedContact() == null : this.getAuthorizedContact().equals(other.getAuthorizedContact()))
            && (this.getContactPosition() == null ? other.getContactPosition() == null : this.getContactPosition().equals(other.getContactPosition()))
            && (this.getContactPhone() == null ? other.getContactPhone() == null : this.getContactPhone().equals(other.getContactPhone()))
            && (this.getAuthorizationUrl() == null ? other.getAuthorizationUrl() == null : this.getAuthorizationUrl().equals(other.getAuthorizationUrl()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getDelFlag() == null ? other.getDelFlag() == null : this.getDelFlag().equals(other.getDelFlag()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPublicId() == null) ? 0 : getPublicId().hashCode());
        result = prime * result + ((getCompanyType() == null) ? 0 : getCompanyType().hashCode());
        result = prime * result + ((getTaxNumber() == null) ? 0 : getTaxNumber().hashCode());
        result = prime * result + ((getEstablishmentDate() == null) ? 0 : getEstablishmentDate().hashCode());
        result = prime * result + ((getProvince() == null) ? 0 : getProvince().hashCode());
        result = prime * result + ((getAgentLevel() == null) ? 0 : getAgentLevel().hashCode());
        result = prime * result + ((getBusinessUrl() == null) ? 0 : getBusinessUrl().hashCode());
        result = prime * result + ((getAdditionalUrls() == null) ? 0 : getAdditionalUrls().hashCode());
        result = prime * result + ((getAuthorizedContact() == null) ? 0 : getAuthorizedContact().hashCode());
        result = prime * result + ((getContactPosition() == null) ? 0 : getContactPosition().hashCode());
        result = prime * result + ((getContactPhone() == null) ? 0 : getContactPhone().hashCode());
        result = prime * result + ((getAuthorizationUrl() == null) ? 0 : getAuthorizationUrl().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getDelFlag() == null) ? 0 : getDelFlag().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", publicId=").append(publicId);
        sb.append(", companyType=").append(companyType);
        sb.append(", taxNumber=").append(taxNumber);
        sb.append(", establishmentDate=").append(establishmentDate);
        sb.append(", province=").append(province);
        sb.append(", agentLevel=").append(agentLevel);
        sb.append(", businessUrl=").append(businessUrl);
        sb.append(", additionalUrls=").append(additionalUrls);
        sb.append(", authorizedContact=").append(authorizedContact);
        sb.append(", contactPosition=").append(contactPosition);
        sb.append(", contactPhone=").append(contactPhone);
        sb.append(", authorizationUrl=").append(authorizationUrl);
        sb.append(", status=").append(status);
        sb.append(", delFlag=").append(delFlag);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}